package com.tuniu.agents.impl.trip.enums;

import com.tuniu.agents.impl.train.TrainAgentConfig;
import com.tuniu.agents.util.I18nUtil;
import lombok.Getter;

@Getter
public enum PlannerEnum {

    PLANNER(TrainAgentConfig.AGENT_ID, "planner.calling.assistant", null),
    PLANNER_ANALYSE(TrainAgentConfig.TRAIN_PARSE_LIST_AGENT_ID, "planner.planning.itinerary", null),
    PLANNER_OUTPUT(TrainAgentConfig.TRAIN_PARSE_DETAIL_AGENT_ID, "planner.output.itinerary", null),
    ;

    private String agentId;
    private String messageKey;
    private String after;


    PlannerEnum(String agentId, String messageKey, String after){
        this.agentId = agentId;
        this.messageKey = messageKey;
        this.after = after;
    }
    
    /**
     * Get the message key for internationalization
     * @return the message key
     */
    public String getMessageKey() {
        return messageKey;
    }
    
    /**
     * For backward compatibility with existing code that uses getBefore()
     * @deprecated Use I18nUtil.getMessage(conversationId, getMessageKey()) instead
     * @return the message key (to be resolved by the caller using I18nUtil)
     */
    @Deprecated
    public String getBefore() {
        return messageKey;
    }
}
